﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>学生后勤报修系统</title>
	<!-- Fav  Icon Link -->
	<link rel="shortcut icon" type="image/png" th:href="@{/images/fav.png}">
	<!-- Bootstrap core CSS -->
	<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
	<!-- themify icons CSS -->
	<link rel="stylesheet" th:href="@{/css/themify-icons.css}">
	<!-- Animations CSS -->
	<link rel="stylesheet" th:href="@{/css/animate.css}">
	<!-- Main CSS -->
	<link rel="stylesheet" th:href="@{/css/styles.css}">
	<link rel="stylesheet" th:href="@{/css/red.css}" id="style_theme">
	<link rel="stylesheet" th:href="@{/css/responsive.css}">
	<!-- morris charts -->
	<link rel="stylesheet" th:href="@{/charts/css/morris.css}">
	<!-- jvectormap -->
	<link rel="stylesheet" th:href="@{/css/jquery-jvectormap.css}">
	<link rel="stylesheet" th:href="@{/datatable/dataTables.bootstrap4.min.css}">
	<style>
		th{color:#8e0b02
		}
	</style>

	<script th:src="@{/js/modernizr.min.js}"></script>
</head>

<body>
	<!-- Pre Loader -->
	<div class="loading">
		<div class="spinner">
			<div class="double-bounce1"></div>
			<div class="double-bounce2"></div>
		</div>
	</div>
	<!--/Pre Loader -->

	<div class="wrapper">
		<!-- Page Content -->
		<div id="content">
				<!-- Top Navigation -->
				<div class="container top-brand">
					<nav class="navbar navbar-default">			
						<div class="navbar-header">
							<div class="sidebar-header"> <a th:href="@{/index.html}"><img th:src="@{/images/logo-dark.png}" class="logo" alt="logo"></a>
							</div>
						</div>
						<ul class="nav justify-content-end">

							<li class="nav-item">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" th:href="@{/#}" role="button" aria-haspopup="true"
								 aria-expanded="false">
									<span class="ti-user"></span>
								</a>
								<div class="dropdown-menu lochana-box-shadow2 profile animated flipInY">
									<h5>John Willing</h5>
									<a class="dropdown-item" th:href="@{/#}">
										<span class="ti-settings"></span> 退出登录</a>


								</div>
							</li>
						</ul>
				
					</nav>
				</div>
				<!-- /Top Navigation -->
				<!-- Menu -->
				<div th:replace="common::#repman-Menu"></div>
				<!-- /Menu -->
				<!-- Breadcrumb -->
				<!-- Page Title -->
				<div class="container mt-0">
					<div class="row breadcrumb-bar"  style="background: white">
						<div class="col-md-6" style="background: white">
							<h3 class="block-title" >报修列表</h3>
						</div>
						<div class="col-md-6">
							<ol class="breadcrumb">
								<li class="breadcrumb-item">
									<a th:href="@{/index.html}">
										<span class="ti-home"></span>
									</a>
								</li>


							</ol>
						</div>
					</div>
				</div>
			<!-- /Page Title -->

			<!-- /Breadcrumb -->
			<!-- Main Content -->
			<div class="container">

				<div class="row">
					<!-- Widget Item -->
					<div class="col-md-12">
						<div class="widget-area-2 lochana-box-shadow">
							<div class="table-responsive mb-3">
								<table id="tableId" class="table table-bordered table-striped" style="background:rgb(255,255,255);">
									<thead>
										<tr>
											<th style=" width: 130px;">报修人</th>
											<th>报修地址</th>
											<th>报修分类</th>
											<th>报修时间</th>
											<th>详细</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<tr th:each="repair:${repairsList}">
											<td th:text="${repair.getUserDetail().getUserName()}"></td>
											<td th:text="${repair.getRepairsPlace()}"></td>
											<td th:text="${repair.getRepairKind()}"></td>
											<td th:text="${#dates.format(repair.getRepairsTime(),'yyyy-MM-dd')}"></td>
											<td th:text="${repair.getRepairsDetail()}"></td>
											<td>
												<div>
													<a th:href="@{/repman/checkrepdetail/}+${repair.getRepairsId()}"><button type="button" name="bt1" style="color:white;font-size: 75%;background: #28da77;border-radius: 13px;">查看/操作</button></a>
												</div>
											</td>
										</tr>
									</tbody>
                                </table>
                                
								<!--Export links-->

							</div>
						</div>
					</div>
					<!-- /Widget Item -->
				</div>
			</div>
			<!-- /Main Content -->
			<!--Copy Rights-->

			<!-- /Copy Rights-->
		</div>
		<!-- /Page Content -->
	</div>
	<!-- Back to Top -->
	<a id="back-to-top" th:href="@{/#}" class="back-to-top">
		<span class="ti-angle-up"></span>
	</a>
	<!-- /Back to Top -->
	<!-- Jquery Library-->
	<script th:src="@{/js/jquery-3.2.1.min.js}"></script>
	<!-- Popper Library-->
	<script th:src="@{/js/popper.min.js}"></script>
	<!-- Bootstrap Library-->
    <script th:src="@{/js/bootstrap.min.js}"></script>
    
    <!-- Datatable  -->
	<script th:src="@{/datatable/jquery.dataTables.min.js}"></script>
	<script th:src="@{/datatable/dataTables.bootstrap4.min.js}"></script>
    
	<!-- Custom Script-->
	<script th:src="@{/js/custom.js}"></script>
	<script th:src="@{/js/custom-datatables.js}"></script>
</body>

</html>